package com.jifen.constant;

public enum ErrorCode {

  SYS_ERR(500, "服务器繁忙"),
  REQ_INVALID_ERR(501, "抱歉无效的请求"),
  SMS_AUTHCODE_ERR(102, "短信验证码不正确"),
  MOBILE_ALREADY_REG(103, "该手机号已被注册"),
  MOBILE_NOT_REG(104, "该手机号未注册"),
  LOGIN_PASSWORD_FAIL(105, "登录密码不正确"),
  OLD_PASSWORD_FAIL(106, "旧密码不正确"),
  NOT_LOGIN(107, "登录信息已过期，请重新登录"),
  QRCODE_FAIL(108, "二维码获取失败，请重试"),
  QRCODE_INVALID(109, "二维码已失效，请刷新"),
  JIFEN_BUZU(110, "积分不足"),
  NOT_ADD_MCH(111, "您不能添加商家"),
  NOT_ADD_SMARKET(112, "您不能添加超市"),
  ADMIN_NOT_AGENT(113, "代理不能成为超市管理员"),
  INVITER_NOT_REG(114, "邀请人不存在"),
  USER_ALREADY_MCH(115, "该负责人已经是商家了"),
  ADMIN_ALREADY_BIND(116, "此管理员已被其他超市绑定"),
  GIVE_JIFEN_ZIJI(117, "积分不能转赠给自己"),
  MCH_JIFEN_BUZU(118, "商家积分不足"),
  DEDUCT_MONEY_BUZU(119, "抵扣金不足");

  private Integer code; // 状态码
  
  private String  msg;  // 描述
  
  private ErrorCode(Integer code, String msg) {
      this.code = code;
      this.msg = msg;
  }

  public Integer getCode() {
    return code;
  }

  public void setCode(Integer code) {
    this.code = code;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
  
  
}
